<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="language" content="en" />

    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/bootstrap.css" media="all" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" media="all" />

<!--    --><?php //Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl.'/js/jquery-1.11.2.js'); ?>
	<?php Yii::app()->getClientScript()->registerCoreScript('jquery'); ?>
    <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl.'/js/bootstrap.js'); ?>
    <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl.'/js/tinymce/tinymce.min.js'); ?>
    <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl.'/js/script.js'); ?>

    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>
<body>
    <div class="container-fluid">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">Админка</a>
                </div>
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav navbar-right">
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Профиль <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo Yii::app()->createUrl('obnovit/polzovatela') ?>">Логин и пароль</a></li>
                                <li class="divider"></li>
                                <li><a href="<?php echo $this->createUrl('/site/logout') ?>">Выйти</a></li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
        <div class="row">
            <div class="col-md-2">
                <ul class="nav nav-pills nav-stacked">
                    <li class="<?php echo Yii::app()->request->requestUri==$this->createUrl('/obnovit/glavnuu') ? 'active' : '' ?>"><a href="<?php echo $this->createUrl('/obnovit/glavnuu') ?>">Главная</a></li>
                    <li class="<?php echo Yii::app()->request->requestUri==$this->createUrl('/obnovit/kontakty') ? 'active' : '' ?>"><a href="<?php echo $this->createUrl('/obnovit/kontakty') ?>">Контакты</a></li>
                    <li class="<?php echo Yii::app()->request->requestUri==$this->createUrl('/spisok/statei') ? 'active' : '' ?>"><a href="<?php echo $this->createUrl('/spisok/statei') ?>">Статьи</a></li>
                    <li class="<?php echo Yii::app()->request->requestUri==$this->createUrl('/spisok/novostei') ? 'active' : '' ?>"><a href="<?php echo $this->createUrl('/spisok/novostei') ?>">Новости</a></li>
                    <li class="<?php echo Yii::app()->request->requestUri==$this->createUrl('/spisok/kategorii') ||
                    Yii::app()->request->requestUri==$this->createUrl('/derevo/kategorii') ? 'active' : '' ?>"><a href="<?php echo $this->createUrl('/spisok/kategorii') ?>">Категории</a></li>
                    <li class="<?php echo Yii::app()->request->requestUri==$this->createUrl('/spisok/tovarov') ? 'active' : '' ?>"><a href="<?php echo $this->createUrl('/spisok/tovarov') ?>">Товары</a></li>
                    <li class="<?php echo Yii::app()->request->requestUri==$this->createUrl('/spisok/zakazov') ? 'active' : '' ?>"><a href="<?php echo $this->createUrl('/spisok/zakazov') ?>">Заказы</a></li>
                    <li class="<?php echo Yii::app()->request->requestUri==$this->createUrl('/nastroiki') ? 'active' : '' ?>"><a href="<?php echo $this->createUrl('/nastroiki') ?>">Настройки</a></li>
                </ul>
            </div>
            <div class="col-md-9">
                <?php echo $content; ?>
            </div>
        </div>
    </div>
</body>
